package com.vx.dao.impl;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.vx.vo.RoleVO;

public class RoleMapper  implements RowMapper {

	@Override
	public Object mapRow(ResultSet rs, int num) throws SQLException {
		RoleVO role=new RoleVO();
		role.setId(rs.getInt("id"));
		role.setRoleCode(rs.getString("roleCode"));
		role.setRoleName(rs.getString("rolename"));
		return role;
	}

}
